package main

import (
	"fmt"
	"sync"
)

//func main() {
//	go func() {
//		fmt.Println("hello")
//	}()
//	fmt.Println("你好")
//	time.Sleep(time.Second)
//}

var wg sync.WaitGroup

func main() {
	wg.Add(1)
	go hello()
	fmt.Println("你好")
	wg.Wait()
}

func hello() {
	defer wg.Done()
	fmt.Println("hello")
}
